package com.demo.studentmanager.dto;

import com.demo.studentmanager.entity.StudentClass;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author zjia
 */
@Data
@Accessors(chain = true)
public class ClassAddDto extends BaseDto<StudentClass> {
    @ApiParam(value = "班级号", required = true)
    @NotNull
    private String classno;

    @ApiModelProperty(value = "班级名", required = true)
    @NotNull
    private String classname;

    @ApiModelProperty(value = "专业名")
    private String speciality;

    @ApiModelProperty(value = "所属年份")
    private String inyear;

    @ApiModelProperty(value = "班级人数")
    private Integer number;

    @ApiModelProperty(value = "班长")
    private String header;

    @ApiModelProperty(value = "院系号", required = true)
    @NotNull
    private String deptno;

    @ApiModelProperty(value = "班主任", required = true)
    @NotNull
    private String tno;
}
